//
// Created by Administrator on 2024/6/15.
//
#include "stdio.h"
#include "stdint.h"
#include "logger.h"
#define SCU_BASE_ADDR								0x40002000
#define REG_SCU_BUZZERCR							(*(volatile uint32_t *)(SCU_BASE_ADDR + 0xE0))
#define isflag 0

/*#define __DEBUG
#ifdef __DEBUG
#define DEBUG(info) printf(info) //1
#else
#define DEBUG(info)  //2
#endif

#ifdef __DEBUG
#define xxxlog(format, ...) \
  			printf("[%s:%d->%s] "format, __FILE__, __LINE__, __func__, ##__VA_ARGS__)  //文件，行号 ，方法
#else
#define xxxlog(format,...)
#endif*/

void InitSystem(){
    printf("Init System \n");
}

int main60(){

    InitSystem();

    while(1){
        printf("hello world");
    }

    //REG_SCU_BUZZERCR &= ~(1<<17);
//    printf("%x\n",SCU_BASE_ADDR);
//    printf("%d \n",~1);
//
////    DEBUG("测试log\n");
////
////
////
////    xxxlog("hello world %d \n",10);
//
//    printf("server start\r\n");
//    printf("file:\"%s\"\nline: %d\nfunction: %s\n", __FILE__, __LINE__,__FUNCTION__);
//
//
//    static LOG_LEVEL logger=LOG_LEVEL_WARN;//模块日志输出级别
//    log_fatal(logger,"this is  a error %d",-1);
//    log_err(logger,"this is a error %d ",-1);
//    log_warn(logger,"%s","this is a warn");
//    log_info(logger,"this is a info");
//    log_debug(logger,"this is a debug");
//#if isflag
//    printf("test");
//#else
//    printf("test1");
//#endif
//    return 0;
}